package com.lingkang.sales.controller;

import com.lingkang.sales.service.LoggerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @author linke
 * @date 2020/11/14 21:17
 * @description
 */
@Controller
public class SalesController {
  @Autowired
  private LoggerService loggerService;

  @GetMapping("")
  public String index() {
    loggerService.test("123","1asssssssssss23");
    return "index";
  }

  @GetMapping("login")
  public String login() {
    return "login";
  }

  @GetMapping("test")
  @ResponseBody
  public String test(){

    return null;
  }
}
